//
//  RunFriendDetail_VC.m
//  Run
//
//  Created by BetaTheta on 16/4/6.
//  Copyright © 2016年 BetaTheta. All rights reserved.
//

#import "RunFriendDetail_VC.h"

#import "RunFriendComment_TVC.h"

@interface RunFriendDetail_VC ()<UITableViewDelegate, UITableViewDataSource>

@property (nonatomic, strong) UIView *headerView;
@property (nonatomic, strong) UITableView *commentTableView;
@property (nonatomic, strong) NSMutableArray *commentArr;

@end

@implementation RunFriendDetail_VC

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    [self createCommentTableView];
    
}
- (void)createCommentTableView{
    
    self.commentTableView = [[UITableView alloc] initWithFrame:self.view.bounds style:UITableViewStyleGrouped];
    _commentTableView.delegate = self;
    _commentTableView.dataSource = self;
    [_commentTableView registerClass:[RunFriendComment_TVC class] forCellReuseIdentifier:@"cell"];
    [self.view addSubview:_commentTableView];
    
}

- (NSInteger) tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section{
    return _commentArr.count;
}

- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath{
    
    RunFriendComment_TVC *cell = [tableView dequeueReusableCellWithIdentifier:cell forIndexPath:indexPath];
    return cell;
}
- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
